package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 模块设计表
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BcraModule对象", description = "模块设计表")
public class BcraModule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模块设计主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "模块名")
    private String title;

    @ApiModelProperty(value = "模块排序字段")
    private Integer sortId;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)//创建时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted", fill = FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "对应问卷表id")
    private Integer questionnaireId;


}
